package org.csu.small.service;

import org.csu.small.common.UniformResponse;
import org.csu.small.entity.User;

/**
 * @author Rambo
 * @date 2020-06-08 9:23
 */
public interface IUserService {

    UniformResponse<User> login(String loginString, String password);
    UniformResponse<String> register(User user);
    UniformResponse<String> checkField(String value, String type);
    UniformResponse<String> sendCode(String phone);
    UniformResponse<String> checkPhoneAndCode(String phone, String code);
    UniformResponse<String> checkLoginString(String value, String type);
    UniformResponse<String> updateInfomation(User user, String username, String email);
    UniformResponse<String> resetPasswordByPhone(String phone,String passwordNew);
    UniformResponse<String> resetPassword(User user, String passwordOld,String passwordNew);

    UniformResponse<User> manageLogin(String loginString, String password);
    UniformResponse<Object> getUserList(String keyword, int pageNum, int pageSize);
}
